﻿namespace Pps.Gui.Base
{
    /// <summary>
    /// This structure holds the width and height information
    /// </summary>
    public class Size
    {
        /// <summary>
        /// Gets the width.
        /// </summary>
        /// <value>
        /// The width in pixel.
        /// </value>
        public virtual int Width
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the height.
        /// </summary>
        /// <value>
        /// The height.
        /// </value>
        public virtual int Height
        {
            get;
            private set;
        }


        /// <summary>
        /// Initializes a new instance of the <see cref="Size"/> class.
        /// </summary>
        /// <param name="width">The width.</param>
        /// <param name="height">The height.</param>
        public Size(int width, int height)
        {
            this.Width = width;
            this.Height = height;
        }

        /// <summary>
        /// Returns a <see cref="System.String" /> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String" /> that represents this instance.
        /// </returns>
        public override string ToString()
        {
            return this.Width.ToString() + ";" + this.Height.ToString();
        }
    }
}